<meta charset="utf-8" />
<title>DEMO</title>
<script src="https://unpkg.com/vue"></script>
<script src="https://unpkg.com/axios@0.19.0/dist/axios.js"></script>
<!-- 引入样式 -->
<link
  rel="stylesheet"
  href="https://unpkg.com/element-ui/lib/theme-chalk/index.css"
/>
<!-- 引入组件库 -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<script src="../dist/vue-crud.umd.js"></script>

<div id="app">
  <data-table resource="plans" :config="config"></data-table>
</div>

<script>
  Vue.use(VueCrud);
  Vue.prototype.$http = axios.create({
    baseURL: "http://localhost:50002"
  });
  new Vue({
    data() {
      return {
        config: {
          title: "计划详情",
          list: {
            fields: [{ prop: "id", label: "ID" }]
          }
        }
      };
    }
  }).$mount("#app");
</script>
